package edu.xpu.compute.recommend.restful;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import edu.xpu.compute.recommend.common.model.ResponseParam;
import edu.xpu.compute.recommend.entity.SysBook;
import edu.xpu.compute.recommend.service.SysBookPopularService;

@RestController
@RequestMapping(value="restful/sysBookPopular")
public class SysBookPopularRestful {
	@Autowired
	private SysBookPopularService sysBookPopularService;
	
	@RequestMapping(value="getAll")
	public ResponseParam<List<SysBook>> getAll() {
		List<SysBook> list = sysBookPopularService.getAll();
		return new ResponseParam<List<SysBook>>("数据获取成功", 200, list);
	}

}
